package org.flowable;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

/**
 * @author : liYang
 * @Version: 1.0
 * @date : 2024/11/22 13:14
 * @Desc : Flowable中的触发器-发送邮件拒绝触发【在流程定义中有这个触发器地址如下：】
 *  <serviceTask id="sendRejectionMail" name="Send out rejection email" flowable:class="org.flowable.SendRejectionMail"/>
 */

public class SendRejectionMail implements JavaDelegate {
    /*
    * 触发执行
    * */
    @Override
    public void execute(DelegateExecution execution){
        //触发执行罗杰 按照流程中的定义给被拒绝人发送邮件通知
        System.out.println("不好意思，你的请假申请被拒绝了.......");
    }
}
















